package com.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试
 * @Author Dang Xianyue
 * @Date 2020-08-08 11:46
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class TestFilterAndInterceptorController {

    //顺序：过滤器--》拦截器--》Controller

    @RequestMapping("/test1")
    public void test1(){
        System.out.println("Controller: test1");
    }

    @RequestMapping("/test2")
    public void test2(){
        System.out.println("Controller: test2");
    }

}
